package string;
/**
 * String replaceAll(String regex,String (s):替换
 * 将当前字符串中,满足正则表达式(regex)的部分给替换为指定字符串(s)
*/
public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line = "我草你妈个大傻逼";
        line = line.replaceAll("[草|妈|傻|逼]","*");
        System.out.println(line);
    }
}
